package com.itqf.controller;

import com.itqf.client.SideCarClient;
import com.itqf.entity.Book;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/12/25
 * @Time: 下午4:01
 */
@RestController
public class MyController {

    @Resource
    private SideCarClient carClient;

    @RequestMapping("/find")
    public List<Book> findAll(){
        return  carClient.findAll();
    }

    @RequestMapping("/findOne")
    public Book findOne(){
        return  carClient.findOne();
    }


}
